package cn.jbolt.ai.resource.function.entity;



import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * AI函数表
 */
@TableName("ja_ai_function_resource")
public class AiFunctionResource implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(name = "sn", description = "编码")
    @TableField("sn")
    private String sn;

    @Schema(name = "type", description = "类型")
    @TableField("type")
    private String type;

    @Schema(name = "briefInfo", description = "功能描述")
    @TableField("brief_info")
    private String briefInfo;

    @Schema(name = "serviceClass", description = "所属类名")
    @TableField("service_class")
    private String serviceClass;

    @Schema(name = "serviceMethod", description = "执行方法")
    @TableField("service_method")
    private String serviceMethod;

    @Schema(name = "paramCount", description = "参数个数")
    @TableField("param_count")
    private Integer paramCount;

    @Schema(name = "enable", description = "是否启用")
    @TableField("enable")
    private Boolean enable;

    @Schema(name = "createTime", description = "创建时间")
    @JsonFormat(locale = "zh", pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    //----------------以下是非数据库字段
    @Schema(name = "servicePackageClassMethod", description = "所属类名:方法名")
    @TableField(exist = false)
    private String servicePackageClassMethod;


    @Schema(name = "paramList", description = "参数list")
    @TableField(exist = false)
    private List<AiFunctionParam> paramList;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBriefInfo() {
        return briefInfo;
    }

    public void setBriefInfo(String briefInfo) {
        this.briefInfo = briefInfo;
    }

    public String getServiceClass() {
        return serviceClass;
    }

    public void setServiceClass(String serviceClass) {
        this.serviceClass = serviceClass;
    }

    public String getServiceMethod() {
        return serviceMethod;
    }

    public void setServiceMethod(String serviceMethod) {
        this.serviceMethod = serviceMethod;
    }

    public Integer getParamCount() {
        return paramCount;
    }

    public void setParamCount(Integer paramCount) {
        this.paramCount = paramCount;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getServicePackageClassMethod() {
        return servicePackageClassMethod;
    }

    public void setServicePackageClassMethod(String servicePackageClassMethod) {
        this.servicePackageClassMethod = servicePackageClassMethod;
    }

    public List<AiFunctionParam> getParamList() {
        return paramList;
    }

    public void setParamList(List<AiFunctionParam> paramList) {
        this.paramList = paramList;
    }
}

